package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ADrivingInfoMapper;
import com.ruoyi.system.domain.ADrivingInfo;
import com.ruoyi.system.service.IADrivingInfoService;

/**
 * 行驶信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-02
 */
@Service
public class ADrivingInfoServiceImpl implements IADrivingInfoService 
{
    @Autowired
    private ADrivingInfoMapper aDrivingInfoMapper;

    /**
     * 查询行驶信息
     * 
     * @param id 行驶信息主键
     * @return 行驶信息
     */
    @Override
    public ADrivingInfo selectADrivingInfoById(Long id)
    {
        return aDrivingInfoMapper.selectADrivingInfoById(id);
    }

    /**
     * 查询行驶信息列表
     * 
     * @param aDrivingInfo 行驶信息
     * @return 行驶信息
     */
    @Override
    public List<ADrivingInfo> selectADrivingInfoList(ADrivingInfo aDrivingInfo)
    {
        return aDrivingInfoMapper.selectADrivingInfoList(aDrivingInfo);
    }

    /**
     * 新增行驶信息
     * 
     * @param aDrivingInfo 行驶信息
     * @return 结果
     */
    @Override
    public int insertADrivingInfo(ADrivingInfo aDrivingInfo)
    {
        return aDrivingInfoMapper.insertADrivingInfo(aDrivingInfo);
    }

    /**
     * 修改行驶信息
     * 
     * @param aDrivingInfo 行驶信息
     * @return 结果
     */
    @Override
    public int updateADrivingInfo(ADrivingInfo aDrivingInfo)
    {
        return aDrivingInfoMapper.updateADrivingInfo(aDrivingInfo);
    }

    /**
     * 批量删除行驶信息
     * 
     * @param ids 需要删除的行驶信息主键
     * @return 结果
     */
    @Override
    public int deleteADrivingInfoByIds(Long[] ids)
    {
        return aDrivingInfoMapper.deleteADrivingInfoByIds(ids);
    }

    /**
     * 删除行驶信息信息
     * 
     * @param id 行驶信息主键
     * @return 结果
     */
    @Override
    public int deleteADrivingInfoById(Long id)
    {
        return aDrivingInfoMapper.deleteADrivingInfoById(id);
    }
}
